home *** CD-ROM | disk | FTP | other *** search
/ NeXTSTEP 3.3 (Developer)…68k, x86, SPARC, PA-RISC] / NeXTSTEP 3.3 Dev Intel.iso / NextDeveloper / Headers / bsd / sparc / signal.h < prev    next >
C/C++ Source or Header  |  1995-02-14  |  1KB  |  41 lines

  1. /*
  2.  * Copyright (c) 1994 NeXT Computer, Inc.
  3.  *
  4.  * HISTORY
  5.  *
  6.  * 21-Apr-1994 Mac Gillon at NeXT
  7.  *    Created.
  8.  */
  9.  
  10. #ifndef    _SPARC_SIGNAL_
  11. #define    _SPARC_SIGNAL_ 1
  12.  
  13. #ifndef ASSEMBLER
  14.  
  15. /*
  16.  * Information pushed on stack when a signal is delivered.
  17.  * This is used by the kernel to restore state following
  18.  * execution of the signal handler.  It is also made available
  19.  * to the handler to allow it to properly restore state if
  20.  * a non-standard exit is performed.
  21.  */
  22. #define SPARC_MAXREGWINDOW  31  /* max usable windows in sparc */
  23.  
  24. struct  sigcontext {
  25.     int sc_onstack;     /* sigstack state to restore */
  26.     int sc_mask;        /* signal mask to restore */
  27.     int sc_sp;          /* sp to restore */
  28.     int sc_pc;          /* pc to retore */
  29.     int sc_npc;         /* next pc to restore */
  30.     int sc_psr;         /* psr to restore */
  31.     int sc_g1;          /* register that must be restored */
  32.     int sc_o0;
  33.     int sc_wbcnt;       /* number of outstanding windows */
  34.     char    *sc_spbuf[SPARC_MAXREGWINDOW]; /* sp's for each wbuf */
  35.     int sc_wbuf[SPARC_MAXREGWINDOW][16]; /* window save buf */
  36. };
  37. #endif  /* ASSEMBLER */
  38.  
  39. #endif /* _SPARC_SIGNAL_ */
  40.  
  41.